package com.jsyso.wxapp.api;

import com.jsyso.jsyso.lang.JStringUtils;
import com.jsyso.weixin.api.API;
import com.jsyso.weixin.api.RequestMethod;

/**
 * 高级群发相关接口
 * @author janjan
 *
 */
public class MessageAPI extends API {
	protected static String WXOPEN_TEMPLATE_SEND = "/cgi-bin/message/wxopen/template/send?access_token=";
	
	public API wxopenTemplateSend(String accessToken, String postJson) {
		this.method = RequestMethod.POST;
		this.postData = postJson;
		this.url = JStringUtils.newBuilder(API_WEIXIN_QQ_COM, WXOPEN_TEMPLATE_SEND, accessToken).toString();
		return this;
	}
}
